package com.zhtkj.entity.zhatu;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

/** 
* @ClassName: Car 
* @Description: 车辆实体类 
* @author mafeng 
* @date 2017年9月7日 上午9:33:50 
*  
*/
@Table(name = "zt_car")
public class Car implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(generator = "JDBC")
	@Column(name = "car_id")
	private Long carId;

	@Column(name = "enterprise_id")
	private Long enterpriseId;

	@Column(name = "car_factory")
	private Integer carFactory;

	@Column(name = "number_plate")
	private String numberPlate;

	@Column(name = "car_number")
	private String carNumber;

	@Column(name = "car_type")
	private String carType;

	@Column(name = "equipment_number")
	private String equipmentNumber;

	@Column(name = "car_owners_name")
	private String carOwnersName;

	@Column(name = "car_owners_contact")
	private String carOwnersContact;

	@Column(name = "sim_number")
	private String simNumber;

	@Column(name = "chassis_number")
	private String chassisNumber;

	@Column(name = "engine_number")
	private String engineNumber;

	@Column(name = "quality")
	private Float quality;

	@Column(name = "passed")
	private String passed;

	@Column(name = "driving_license_number")
	private String drivingLicenseNumber;

	@Column(name = "equipment_providers")
	private Integer equipmentProviders;

	@Column(name = "start_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;

	@Column(name = "end_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;

	@Column(name = "car_insurance")
	private String carInsurance;

	@Column(name = "car_note")
	private String carNote;

	@Column(name = "car_driving_license")
	private String carDrivingLicense;

	@Column(name = "car_qualification")
	private String carQualification;

	@Column(name = "work_numbers")
	private String workNumbers;

	@Column(name = "car_register")
	private Integer carRegister;

	@Column(name = "register_number")
	private String registerNumber;

	@Column(name = "create_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@Column(name = "operation_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date operationTime;

	@Column(name = "car_img")
	private String carImg;

	@Column(name = "city_id")
	private Integer cityId;

	@Column(name = "car_level")
	private String carLevel;

	@Transient
	private String enterpriseName;
	
	@Transient
	private Long districtId;
	
	@Transient
	private String districtName;
	
	public Long getCarId() {
		return carId;
	}

	public void setCarId(Long carId) {
		this.carId = carId;
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public Integer getCarFactory() {
		return carFactory;
	}

	public void setCarFactory(Integer carFactory) {
		this.carFactory = carFactory;
	}

	public String getNumberPlate() {
		return numberPlate;
	}

	public void setNumberPlate(String numberPlate) {
		this.numberPlate = numberPlate;
	}

	public String getCarNumber() {
		return carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

	public String getCarType() {
		return carType;
	}

	public void setCarType(String carType) {
		this.carType = carType;
	}

	public String getEquipmentNumber() {
		return equipmentNumber;
	}

	public void setEquipmentNumber(String equipmentNumber) {
		this.equipmentNumber = equipmentNumber;
	}

	public String getCarOwnersName() {
		return carOwnersName;
	}

	public void setCarOwnersName(String carOwnersName) {
		this.carOwnersName = carOwnersName;
	}

	public String getCarOwnersContact() {
		return carOwnersContact;
	}

	public void setCarOwnersContact(String carOwnersContact) {
		this.carOwnersContact = carOwnersContact;
	}

	public String getSimNumber() {
		return simNumber;
	}

	public void setSimNumber(String simNumber) {
		this.simNumber = simNumber;
	}

	public String getChassisNumber() {
		return chassisNumber;
	}

	public void setChassisNumber(String chassisNumber) {
		this.chassisNumber = chassisNumber;
	}

	public String getEngineNumber() {
		return engineNumber;
	}

	public void setEngineNumber(String engineNumber) {
		this.engineNumber = engineNumber;
	}

	public Float getQuality() {
		return quality;
	}

	public void setQuality(Float quality) {
		this.quality = quality;
	}

	public String getPassed() {
		return passed;
	}

	public void setPassed(String passed) {
		this.passed = passed;
	}

	public String getDrivingLicenseNumber() {
		return drivingLicenseNumber;
	}

	public void setDrivingLicenseNumber(String drivingLicenseNumber) {
		this.drivingLicenseNumber = drivingLicenseNumber;
	}

	public Integer getEquipmentProviders() {
		return equipmentProviders;
	}

	public void setEquipmentProviders(Integer equipmentProviders) {
		this.equipmentProviders = equipmentProviders;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getCarInsurance() {
		return carInsurance;
	}

	public void setCarInsurance(String carInsurance) {
		this.carInsurance = carInsurance;
	}

	public String getCarNote() {
		return carNote;
	}

	public void setCarNote(String carNote) {
		this.carNote = carNote;
	}

	public String getCarDrivingLicense() {
		return carDrivingLicense;
	}

	public void setCarDrivingLicense(String carDrivingLicense) {
		this.carDrivingLicense = carDrivingLicense;
	}

	public String getCarQualification() {
		return carQualification;
	}

	public void setCarQualification(String carQualification) {
		this.carQualification = carQualification;
	}

	public String getWorkNumbers() {
		return workNumbers;
	}

	public void setWorkNumbers(String workNumbers) {
		this.workNumbers = workNumbers;
	}

	public Integer getCarRegister() {
		return carRegister;
	}

	public void setCarRegister(Integer carRegister) {
		this.carRegister = carRegister;
	}

	public String getRegisterNumber() {
		return registerNumber;
	}

	public void setRegisterNumber(String registerNumber) {
		this.registerNumber = registerNumber;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getOperationTime() {
		return operationTime;
	}

	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}

	public String getCarImg() {
		return carImg;
	}

	public void setCarImg(String carImg) {
		this.carImg = carImg;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public String getCarLevel() {
		return carLevel;
	}

	public void setCarLevel(String carLevel) {
		this.carLevel = carLevel;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public Long getDistrictId() {
		return districtId;
	}

	public void setDistrictId(Long districtId) {
		this.districtId = districtId;
	}

	public String getDistrictName() {
		return districtName;
	}

	public void setDistrictName(String districtName) {
		this.districtName = districtName;
	}

}
